<?php
	if(is_array($_POST['order_id'])) {
		$order_id = $_POST['order_id'];
		$sql = "UPDATE `tbl_buy_order` SET `status` = '2' WHERE `order_id` IN (". implode (',',$order_id) .")";
	} else { 
		$order_id = $params[0]; 
		$sql = "UPDATE `tbl_buy_order` SET `status` = '2' WHERE `order_id` = '$order_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>